SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36148: Square transformation might return incorrect results when LENGTH statement is used

DetailsAboutRate It
When a LENGTH statement has been used to set the length of a variable to a value less than 8., PROC TRANSREG reports incorrect results for the square transformation. The incorrect results are very close to zero (0). The problem occurs for variables that appear in the model statement, but do not appear in the model.

For example, in the code below, the variable X appears in the MODEL statement. But, only the product of X with itself (X*X = X**2) appears in the model.

proc transreg data=mydata;
  model identity(y) = ide(x*x);
  output;
run;  

In this situation, the model results will be incorrect. To avoid the problem, build the squared variable in a DATA step.

data newdata;
   set mydata;
   x2=x*x;
   run;

proc transreg data=newdata;
   model identity(y) = ide(x2);
   output;
   run;  



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/STATz/OS9.1 TS1M3 SP49.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M2
HP-UX IPF9.1 TS1M3 SP49.2 TS2M2
Linux9.1 TS1M3 SP49.2 TS2M2
Linux on Itanium9.1 TS1M3 SP49.2 TS2M2
OpenVMS Alpha9.1 TS1M3 SP49.2 TS2M2
Solaris for x649.1 TS1M3 SP49.2 TS2M2
Tru64 UNIX9.1 TS1M3 SP49.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.